<?php

class CSS
{
	var $class = '';
	var $style = array();

	function display($type)
	{
		$this->style[] = "display: $type;";
	}

	function add($css)
	{
		$this->style[] = "$css;";
	}

	function getClass()
	{
		if (!empty($this->class))
		{
			return " class=\"".$this->class."\"";
		}
		return "";
	}

	function getStyles()
	{
		if (count($this->style) > 0)
		{
			return " style=\"" . implode("", $this->style) . "\"";
		}
		return "";
	}

	function getCSS()
	{
		return $this->getClass() . $this->getStyles();
	}
}


?>